package com.fdhwws.web.service;

import com.fdhwws.web.domain.ChatRoom;
import com.fdhwws.web.domain.User;
import com.fdhwws.web.entity.AjaxResult;

import java.util.List;

public interface ChatRoomService {
    AjaxResult addChatRoom(ChatRoom chatRoom, User user);

    Boolean checkChatRoom(String name);

    List<ChatRoom> getChatRoomByUid(Integer uid);

    List<ChatRoom> getAllChatRoom();

    Boolean verifyChatRoom(Integer id, String pwd);

    AjaxResult getChatRoomByRoomId(Integer id);

    AjaxResult deleteChatRoomById(Integer id, User user);

    AjaxResult updateChatRoom(ChatRoom chatRoom);

    AjaxResult openOrCloseChatRoomByRoomId(Integer roomId);
}
